﻿<controls:ChildWindow xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"  x:Class="OpalisConsole.Views.Administration.Child_Windows.AuthorizationDetailsWindow"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
           xmlns:controlsToolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit"
           Width="700" Height="600" 
           Title="AuthorizationDetailsWindow">
    <Grid x:Name="LayoutRoot" Margin="2">
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <controlsToolkit:BusyIndicator Name="busyIndicatorMain">
            <StackPanel Orientation="Vertical">
                <StackPanel Orientation="Horizontal">
                    <TextBlock Text="Requester:" />
                    <TextBox Name="boxRequester" Width="300" Margin="200,0,0,0" IsReadOnly="True" />
                </StackPanel>
                <StackPanel Orientation="Horizontal">
                    <TextBlock Text="Machine:" />
                    <TextBox Name="boxMachine" Width="300" Margin="210,0,0,0" IsReadOnly="True" />
                </StackPanel>
                <StackPanel Orientation="Horizontal">
                    <TextBlock Text="Status:" />
                    <TextBox Name="boxStatus"  Width="300" Margin="220,0,0,0" IsReadOnly="True"/>
                </StackPanel>
                <StackPanel Orientation="Horizontal" Margin="0,20,0,0">
                    <TextBlock Text="SCCM Defined Machine Owner:" />
                    <TextBox Name="boxSCCMOwner"  Width="300" Margin="90,0,0,0" IsReadOnly="True"/>
                </StackPanel>
                <StackPanel Orientation="Horizontal">
                    <TextBlock Text="Machine Type:" />
                    <TextBox Name="boxMachineType"  Width="300" Margin="181,0,0,0" IsReadOnly="True"/>
                </StackPanel>
                <StackPanel Orientation="Horizontal">
                    <TextBlock Text="Number of Processors:" />
                    <TextBox Name="boxNumProcessors"  Width="300" Margin="135,0,0,0" IsReadOnly="True"/>
                </StackPanel>
                <StackPanel Orientation="Horizontal">
                    <TextBlock Text="Amount of RAM:" />
                    <TextBox Name="boxRAM"  Width="300" Margin="170,0,0,0" IsReadOnly="True"/>
                </StackPanel>
                <TextBlock Text="Work Log" Margin="5,20,0,0" FontWeight="Bold" />
                <sdk:DataGrid Name="gridWorkLog" Height="120" HorizontalAlignment="Left" Margin="5" AutoGenerateColumns="False" MouseLeftButtonUp="gridWorkLog_MouseLeftButtonUp">
                    <sdk:DataGrid.Columns>
                        <sdk:DataGridTextColumn Binding="{Binding UserName}" Header="User Name" IsReadOnly="True" Width="1*" />
                        <sdk:DataGridTextColumn Binding="{Binding NoteDate}" Header="Date" IsReadOnly="True" Width="1*" />
                        <sdk:DataGridTextColumn Binding="{Binding displayLine}" Header="Note" IsReadOnly="True" Width="2*" />
                    </sdk:DataGrid.Columns>
                </sdk:DataGrid>
                <Button Name="btnAddWorklogEntry" Content="Add Worklog Entry" HorizontalAlignment="Right" Margin="5" Width="130" Click="btnAddWorklogEntry_Click" />
                <sdk:DataGrid AutoGenerateColumns="False" Name="gridSoftwareValidation" MaxHeight="130" LoadingRow="gridSoftwareValidation_LoadingRow" Margin="0,10,0,0">
                    <sdk:DataGrid.Columns>
                        <sdk:DataGridTextColumn Binding="{Binding PackageName}" Header="Program Name" IsReadOnly="True" Width="2*" />
                        <sdk:DataGridTextColumn Binding="{Binding Status}" Header="Program Status" IsReadOnly="True" Width="2*" />
                    </sdk:DataGrid.Columns>
                </sdk:DataGrid>
            </StackPanel>
        </controlsToolkit:BusyIndicator>
        <Button x:Name="ApproveButton" Content="Approve" Click="ApproveButton_Click" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,12,240,0" Grid.Row="1" />
        <Button x:Name="PendingButton" Content="Pending" Click="PendingButton_Click"  Width="75" Height="23" HorizontalAlignment="Right" Margin="0,12,160,0" Grid.Row="1" />
        <Button x:Name="RejectButton" Content="Reject" Click="RejectButton_Click" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,12,0,0" Grid.Row="1" />
        <Button x:Name="CancelButton" Content="Cancel" Click="CancelButton_Click" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,12,79,0" Grid.Row="1" />
    </Grid>
</controls:ChildWindow>